﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Direct.Security;
using Direct.Security.Model;

namespace Direct.Security.Impl
{
    abstract class SecurityObjectImpl : ISecurityObject
    {
        protected SecurityObjectImpl(SecObjEntity entity, SecObjType objType)
        {
            this.ObjType = objType;
            this.ObjId = entity.ObjectId;
            this.Name = entity.Name;
            this.Description = entity.Description;
            this.Active = entity.Active;
        }

        public SecObjType ObjType { get; private set; }
        public string ObjId { get; private set; }
        public string Name { get; private set; }
        public string Description { get; private set; }
        public bool Active { get; private set; }
    }
}
